Skip to content

docs: add missing agent imports in AWS and Neo4j provider examples - #5792

Open
SpiliosDmk (SpiliosDimakopoulos) wants to merge 1 commit into
langchain-ai:mainfrom
SpiliosDimakopoulos:fix/missing-agent-imports
Open

docs: add missing agent imports in AWS and Neo4j provider examples#5792
SpiliosDmk (SpiliosDimakopoulos) wants to merge 1 commit into
langchain-ai:mainfrom
SpiliosDimakopoulos:fix/missing-agent-imports

Conversation

@SpiliosDimakopoulos

Copy link
Copy Markdown
Contributor

What

Two integration provider pages call an agent-creation function that
is never imported in the code sample, so copying the example as-is
raises NameError.

  • src/oss/python/integrations/providers/aws.mdx
    Two Bedrock AgentCore toolkit examples (browser + code interpreter)
    call create_react_agent(...) without importing it.
    Added: from langgraph.prebuilt import create_react_agent

  • src/oss/python/integrations/providers/neo4j.mdx
    The Neo4jSaver checkpointer example calls create_agent(...)
    without importing it.
    Added: from langchain.agents import create_agent

Why

Both symbols are used but never defined/imported anywhere else on
the page, so running the snippet as written fails immediately.
Same bug class as #1619 ("add missing import"), which was merged
for a different page.

Type of change

  • Documentation fix (broken code example)

3-line, docs-only change, no functional impact outside the code samples.

Two code examples call an agent-creation function that is never
imported in the snippet, so copying them as-is raises NameError.

- providers/aws.mdx: two Bedrock AgentCore toolkit examples call
  create_react_agent(...) without importing it. Added
  'from langgraph.prebuilt import create_react_agent'.
- providers/neo4j.mdx: the Neo4jSaver checkpoint example calls
  create_agent(...) without importing it. Added
  'from langchain.agents import create_agent'.

Same class of fix as PR langchain-ai#1619 (add missing import).
@github-actions github-actions Bot added integration For docs updates for LangChain integrations langchain For docs changes to LangChain oss python For content related to the Python version of LangChain projects labels Aug 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for opening a docs PR, SpiliosDmk (@SpiliosDimakopoulos)! When it's ready for review, please add the relevant reviewers:

  • @mdrxy (Python integrations)

@github-actions github-actions Bot added the external User is not a member of langchain-ai label Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external User is not a member of langchain-ai integration For docs updates for LangChain integrations langchain For docs changes to LangChain oss python For content related to the Python version of LangChain projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant